home *** CD-ROM | disk | FTP | other *** search
- #include "Devices.h"
- #include "Events.h"
- #include "Files.h"
-
- #include <Stdio.h>
-
- #define False 0
- #define True 1
- #define Null 0
-
- void Stop()={0xa9ff};
-
-
- void main (void)
- {
- OSErr Result;
- ParamBlockRec Pb;
- short Drive_Number;
- short RefNum;
- DrvQElPtr Q_Element;
-
- Pb.ioParam.ioCompletion = 0;
- Pb.ioParam.ioNamePtr = "\p.NuDriver";
- Pb.ioParam.ioVRefNum = 0;
- Pb.ioParam.ioBuffer = Null;
-
- Result = PBOpen (&Pb, false);
-
- printf("Result is: %lx\n", Result);
-
- /////////////////////
- // If a Disk Driver,...
- //
- // RefNum = Pb.ioParam.ioRefNum;
- // Drive_Number = Pb.ioParam.ioVRefNum;
- // Q_Element = (DrvQElPtr)Pb.ioParam.ioBuffer;
- //
- // if ((Result == noErr) && (Q_Element != Null))
- // {
- // AddDrive (RefNum, Drive_Number, Q_Element);
- // PostEvent (diskEvt, Drive_Number);
- // }
- }
-